import request from '@/utils/request'


// 获取轮播图数据列表
export const reqSwiperList = ({ current, size }) => request({
    url: `/admin/indexImg/page?page=${current}&size=${size}`,
    method: 'GET'
})


// 删除轮播图数据
export const reqDeleteSwiper = (ids) => request({
    url: '/admin/indexImg/delete',
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    data: ids
})

// 添加轮播图
export const reqAddSwiper = (swiperParameters) => request({
    url: '/admin/indexImg/save',
    method:'POST',
    data:swiperParameters
})

// 修改轮播图
export const reqUpdateSwiper = (swiperParameters) => request({
    url: '/admin/indexImg/update',
    method:'POST',
    data:swiperParameters
})